import axios from 'axios'
import api from "@/utils/request";

const API_BASE_URL = 'http://localhost:8080/api'

export const connectServer = async (config: {
    host: string
    port: number
    username: string
    password: string
}) => {
    return api.post("/documentManager/sftp/server/connect", config)
}


export const disconnectServer = async () => {
    return api.post(`/documentManager/sftp/server/disconnect`)
}